export default {
    bind(el,binding,vnode){  /*绑定时触发*/
        let _val = binding.value;
        let _el_item = el.getElementsByClassName(_val.itemName);

        _el_item[_val.curInd].className += ` ${_val.curName}`;
    },
    update(el,binding,vnode){   /*更新是触发*/
        let _val = binding.value;
        let _old_val = binding.oldValue;
        let _el_item = el.getElementsByClassName(_val.itemName);

        _el_item[_old_val.curInd].className = _val.itemName;
        _el_item[_val.curInd].className += ` ${_val.curName}`;
    }
}
